Only include unistd.h in POSIX-land.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Jan 2004 23:47:34 +0000 (23:47 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 8 Jan 2004 23:47:34 +0000 (23:47 +0000)
gpsbabel/jeeps/gpsserial.c

index fbbfbcbad5ddeece5d542f227038b35ef186f904..a2e24e75edfcef3c198dc5fa97e3d3f1f584fefa 100644 (file)
@@ -28,7 +28,6 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <stdio.h>
-#include <unistd.h>
 #include <time.h>
 
 /* 
@@ -140,6 +139,7 @@ int32 GPS_Serial_Read(int32 ignored, void *ibuf, int size)
 #include <sys/ioctl.h>
 #include <sys/time.h>
 #include <termios.h>
+#include <unistd.h>
 
 static struct termios gps_ttysave;